<html>
<head>
    <title>卖家商品详情</title>
    <#include "../common/header.ftl">
</head>
<body>
<div id="wrapper" class="toggled">
    <#include "../common/nav.ftl">
    <div id="page-content-wrapper">
        <div class="container-fluid">
            <div class="col-md-12 column">
                <form role="form" method="post" action="/sell/seller/product/save">
                    <div class="form-group">
                        <label>名称</label><input name="productName" class="form-control" value="${(productInfo.productName)!''}"/>
                    </div>

                    <div class="form-group">
                        <label>价格</label><input name="productPrice" class="form-control" value="${(productInfo.productPrice)!''}"/>
                    </div>

                    <div class="form-group">
                        <label>库存</label><input name="productStock" class="form-control" value="${(productInfo.productStock)!''}"/>
                    </div>

                    <div class="form-group">
                        <label>描述</label><input name="productDescription" class="form-control" value="${(productInfo.productDescription)!''}"/>
                    </div>

                    <div class="form-group">
                        <label>类目</label>
                        <select name="categoryType" class="form-control">
                            <#list productCategoryList as productCategory>
                                <option value="${productCategory.categoryType}"
                                    <#if (productInfo.categoryType)?? && (productInfo.categoryType) == productCategory.categoryType>
                                        selected
                                    </#if>
                                >
                                    ${productCategory.categoryName}
                                </option>
                            </#list>
                        </select>
                    </div>
                    <input type="hidden" name="productId" value="${(productInfo.productId)!''}">
                    <button type="submit" class="btn btn-default">提交</button>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>
